added syntax error and changed error classes