no more global var! wooohooo