refactor the loop into _update_batch_item(); all tests pass