globalizing variables in a bad way