add accumulator

add accumulator