added tapered moving average function