change Accumulator constructor