rewrite finding sccs