change grouping to use sum of values, not max val. Also... XXL