you can write endStep in the loop, endStep is called the same amount of time of the parameter set in subProcess(count)