remove global vars