Remove declaration on top without size. Let the script create global variable on its own
If you assign a value to a variable that has not been declared, it will automatically become a GLOBAL variable.