clear version. using DFS