better sum, max, min