regenerate diagrams