commit todo
complete dfs