added accelerometer