changed swap_with_next implementation so that items are swapped rather than payloads