correct chi^2 definition