now it finally draws rectangles