added FWHM function