Regenerating doc