scc refactoring