more debugging of create_rect