finish swiping and add some debugging