Wrapped Rect in function for define