adjust depthshallow to gain ~25% speedup