added more detailed debug writing to the rectangles