added gravity scaling