rewrite of all