looping and saving finished.