removed the swipe function