adding intersection of rectangles