fix typo and rename function