reparing syntax errors