adding tput clear to avoid mess with the progression bar