working on progress bar