simplify dedup