remove extra global var