last and first swapped