fixed up/cleaned up swiping algorithm for absolute last time