fixed unexpected "var"