updated Rewriting (back in base pack)