update re_write