stateful decimation almost working