fixed location of globalvar