labelTree implemented