added gravity, changed some parameters