changing direction of a loop