basic accel detection working