fixed typo and syntax error