simplify document building