[refactoring] progress bar helper