use is_distinct in unique_tuple