displays all rects without any problem