hier_match function

Match default and original node labels