highlighting of rectangles works