global vars working