renamed rectangles to main