start rewrite doc