fixed refactoring typos