rewrited doc file