changed handle check to loop and print accel data