sum by kind