batch for 5000 generations