modify doc content