Rewrite doc