use standard library for fwhm