update rect2d