changing the direction