dfs -> spa