equality for rectangles added