update names to be distinct