more boring DFS variant.