refactor scc