changed progress bar logic