added gravity behaviour