accelerometer should be optional