fix typo and formatting issues