better use of the progress bar when saving