fix typo and style issues