rotation for rectangles