added changes for higher sampling of accelerometer