adding buffered moving average