dfs works