prepare doc format