I'm wondering if a global var would be more appropriate