swapping up and down arrows