simplify max depth calculation
a vxeing problem with first split