switched on chi2 calculations