fix typo error in method