changed the bid accumulation to be atomic