while loop and progress bar!