adding fit_gaussian to chisq
adding fit_gaussian to chisq again