added wave form smoothing functions