input smoothing