added gravity (not working yet)