add batch plots in for loop