pre-calc column_max to handle all cases.