rewriting docs