rewrite Tool