added counterclockwise rotation