added accumulator