routing and labeling