revert change to gravity canrun function