format documents