refactored for extended class in addressbook