fixing syntax errors