added accelerometer functionality