refactoring contacts