new implementation of FWHM