typo refactor