swapping the order