before assigning tag gable as a global variable