A new scheme that involves Fourier transformation to determine a correlation function of the first derivative of an electronic-density profile is proposed to improve the groove-tracking method. Tests of application of this scheme on simulated data demonstrate that this scheme is helpful in analysis of reflectivity data to retrieve profiles of electronic density that are not completely smooth, and operates with little or no prior information about unknown profiles. The mathematical basis of the new scheme is discussed.