updated smoothing filter function