added the typ of nodes in vertex