update the new node ID generation logic