create_batch finished but untested version