batch loop update