changed accelerometer for ios devices