updated progress bar, it now works as intended