add $node->type check