refactoring "require" and Typo