added frequency smoothing