add progress bar in terminal