cleaning progressbar func