update for set of rectangles