produce batch exactly with the batch size.
remove the useless.