search removes duplicates