added gravity and shake option