modify how we assign batchIds