format use document as output