added another accumulator method