improved syntax errors