working on chi2 explanation