fixed typo and syntax errors