rewrite thanks