made it use rectangles