refactor max,min column widths