added Chi-squared but there is an error