attempt to implement a better smoothing filter.. WIP