implemented unique id search