errors now used to calculate chisq