call with depth = 1 (root node), depth=batch_depth*2, what about illegal node id