added gravity and gyroscope