min depth. tricky.