added some more functions for gravity calcs