Remove globalvar

cleaned up the global script