added swapping values to ensure that '2 is bigger