added g_ prefix to a global variable.