modify doc type