duplicate node ids check