fix typo and poor formatting