fixing problems with swipe