start rewriting doc