handle syntax error separately