rewrite regify