add behavior for syntax error