check for batch size