assign Rect class to local