modify accumulator to use varcontainers