add type to node