updates syntax errors