added accelerometer API