rewrite dialog