remove global vars pb5