corrected sumFactors