remove global references