fixed accelerometer
formatting