fixes syntax errors