fix a typo and outdated method name