ensure we call accumulator in a safe way