added accelerometer for testing