better unique code index for every node