add gen class batch updating for 5 rounds