better algoritm to set column size for warning/normal typed columns