deduplicate, replace name