fixed var statement syntax error