leave variance as 1 if not explicitly set, moved chisq calculations to after storing fitting parameters