coding the swipe