rewrite theme