planet functions