changing to max depth since that's portable