make sure related names are unique