added fwhm code