improve dispersion analysis