Localized and corrected syntax errors

Localized and corrected syntax errors