writting doc