removing syntax errors