add chi2/ndata of core in psf and ios