dfs works, need to fix plan