wrapped chi2 for convenience