modified remove_duplicates to use dict.values() to get items in no_dup list instead of iterating each item manually