added syntax error handling