prepare to processbar