flexible_diagram