ensure accumulator not nil