check id duplication