refactoring manly