remove E notices from use of global var