rewrite something