tree with problem