pre rewrite rs