rename MaxDepth to Depth