add node type field