regenerating doc