correct syntax errors