cleaned up swipe and accel code