progress bar works as expected