note how to dfs