added id to nodes