fix typos and add more output