add ID's to each node