dfs version is easy:)