fix typo and output formatting