refactoring for WellRectangle