tweaking accelerometer implementation