cleaning syntax errors