redo of for loop to initial condition