add batch allocation