refactoring in pairs