terminal labeling