contains swapping of numbers