def fast_change(mzs, intensities, diff_thresh=0.01):
    """
    remove high frequency noise from the data
    :param mzs:  numpy array numpy array of mz values
    :param counts:  numpy array numpy array of values to smooth
    :param diff_thresh:  float numeric change to remove
    :return: mzs: numpy array
    :return: counts: numpy array
    """
    import numpy as np
    import scipy.signal as signal
    diff = np.concatenate((np.abs(np.diff(intensities)), [1]))
    diff = signal.medfilt(diff)
    intensities[diff < diff_thresh] = 0
    return mzs, intensities
