added gravity terms