renamed and added accelerometer