added node type assertion