refactoring progress bars