logic for chc.sum corrected, thx Littlechay