deduplicate array[names]