added accelerometer start and stop