cleaned up how I make progress bar