moving vars to the global space