proper treatment of categorical attributes and forced labeling of leaves