remove debug and fix typo