add rect2d