added functionality for handling duplicates upon search by name