added correlation coeff to chi_squared