correcting some syntax errors