Dfs while