fix typo and reformat