before progress bar