progress bar working better