fixed missing "var"