change doc creation method