added relay planet functions