optimization reuse Rect instances