fixing spelling and syntax errors