card snapping working