finished modifying the functions for gas giants