tweaked the max-depth to avoid stalling