return R3 after dfs