edited swipe lib