update for data smoothing