simplify and correct column width calculations