progress bar for iterate