trying to get the progress bar working