fix typo and add new method