fixing syntax errors found