added chi2 plot