fixing DFS