variable was missing the global attribute