add labels of rectangles