wrote document