accomplish the DocumentWriter