refactoring small