minor code refactoring in Contacts