adjust batch size