changed orientation of rectangles