added gravity option