correcting a typo and syntax errors