added accelerometer feature