updated accelerometer acces functions