changed input to analog for signal smoothing