how do I add max totals