doc regeneration