update batch size