fixed sumproduct, max_sum