chnged  global variables