progressbar documentation and optimization for label