changed formatdoc