global vars are EVIL