mode into dfs