rename publicVar to globalVar