rewrite sandr