testing swapping