fix typo and output