progress bar now works