update add_swipe_data method