part 1 of progress bar