implemented Swipe