tree restriction more flexible