make document preparation work