updated comment on syntax error function