fix syntax errors