renaming sum_2_max to max_2_sum