added fit for rectangles with rectangles