rewrite doc for init