use "global" instead of "var"