updated the rectangles