fixed global variables for gets