refactored working swipe functions