working on integrating accelerometer data