rotate_direction function renamed to rotate