unify tree label format