added planet functions.