rewrite sc