actually set maxDepth and multiple