added gravity normalization