preparings for progressbar