added the swipe function