" if depth = 0 or node is a terminal node" . . . .