use a rolling window average to introduce inertia