proper syntax error handling