speed up dfs and scc