Chapter 5
Parametric Sketching and Feature-Based Solid Modeling
Bachelors Program in Machine Technology
CAD and CAM
•
Bachelor
Parametric Sketching and Feature-Based Solid Modeling
Introduction
Parametric sketching and feature-based solid modeling are central methods in modern computer-aided design (CAD) and computer-aided manufacturing (CAM). Instead of representing a component only as a collection of disconnected lines and surfaces, these methods describe its geometry through dimensions, relationships, operations, and design intent. A hole can therefore remain concentric with a shaft, a wall can remain a constant thickness, and a pattern can automatically update when the number or spacing of instances changes.
A parametric model is not merely a drawing. It is a structured product definition. The model records how geometry is created, how dimensions control it, and how design decisions are related. This structure supports design modification, engineering analysis, drawing generation, manufacturing planning, and revision control.
This chapter develops the principles required to create constrained sketches and robust parametric parts using constructive solid geometry (CSG), boundary representation (B-rep), extrusions, revolves, sweeps, lofts, patterns, and common design features. Particular attention is given to design intent: the capacity of a model to behave predictably when requirements change.
Learning Objectives
By the end of this chapter, the reader should be able to:
Explain the relationship between parametric modeling, CSG, and boundary representation.
Create fully constrained sketches using geometric constraints and dimensional constraints.
Select appropriate datum planes, reference geometry, and feature sequences.
Construct solids using extrusions, revolutions, sweeps, lofts, Boolean operations, and patterns.
Apply engineering features such as holes, fillets, chamfers, ribs, shells, and drafts.
Diagnose under-constrained, over-constrained, and unstable models.
Evaluate model robustness and preserve design intent.
Apply a feature-based workflow to a practical component and prepare it for manufacture.
1. The Parametric Modeling Concept
In a conventional geometric model, the designer may directly edit points, edges, and faces. In a parametric model, geometry is controlled by parameters and relationships. A parameter may be a length, angle, radius, material thickness, instance count, or suppression state. A relationship may specify coincidence, tangency, concentricity, symmetry, equal length, or a parent–child dependency.
A feature is a meaningful modeling operation that adds, removes, or modifies material. Examples include a pad or extrusion, pocket or cut, hole, fillet, chamfer, shell, rib, draft, sweep, and pattern. Features are normally stored in a chronological history tree. Later features depend on earlier features; therefore, the order and references used in the tree affect model stability.
The central distinction is between shape and intent. Shape describes the current geometry. Intent describes why the geometry has that form. For example, two holes may currently be 40 mm apart. A weak model merely stores two locations. A stronger model specifies that the holes are symmetric about a center plane, so symmetry remains valid if the overall width changes.
Design intent
Design intent should be expressed through:
meaningful dimensions rather than excessive fixed coordinates;
symmetry and equality where design requirements imply them;
references to stable datums rather than fragile generated edges;
feature patterns rather than manually repeated geometry;
logical feature order;
named parameters and documented assumptions.
A robust model should respond correctly to anticipated changes without requiring extensive repair. Robustness is not absolute: a model is robust relative to a set of expected modifications and manufacturing requirements.
2. Geometric Representation of Solids
2.1 Constructive solid geometry
Constructive solid geometry represents a part as a combination of primitive solids such as blocks, cylinders, cones, spheres, and tori. Boolean operations combine these primitives:
Union combines two volumes.
Difference subtracts one volume from another.
Intersection retains only the common volume.
CSG is conceptually powerful because the model records a construction process. A bracket, for example, may be created by joining two rectangular prisms, subtracting bolt holes, and applying edge treatments.
CSG is especially useful for prismatic parts, conceptual design, automation, and boolean reasoning. Its limitation is that some detailed engineering features and free-form transitions are more naturally represented by sketches and boundary-based operations.
2.2 Boundary representation
Boundary representation describes a solid through its enclosing boundary. A typical B-rep contains:
vertices, which are points;
edges, which are bounded curves;
faces, which are bounded surface regions;
shells, which are connected collections of faces;
a solid region, which identifies the material side of the boundary.
A valid solid generally requires a closed, non-self-intersecting boundary with consistent face orientations. Gaps, overlapping faces, zero-thickness regions, and ambiguous intersections can cause invalid geometry.
B-rep is suitable for detailed mechanical components because individual faces and edges can be selected for features. However, direct references to generated edges may be unstable: a change in an upstream feature can split, merge, or renumber them. This is commonly called topological naming instability.
2.3 Hybrid modelers
Most commercial CAD systems use hybrid approaches. A feature history provides parametric construction, while the resulting shape is stored and evaluated using B-rep techniques. CSG-like Boolean operations coexist with sketches, surface operations, and direct manipulation.
Relationship between sketches, features, and a final solid model
Figure: Relationship between sketches, features, and a final solid model
Figure: A parametric modeling workflow from constrained sketch to regenerated solid.
3. Parametric Sketching
A sketch is a two-dimensional geometric definition used to create or control a feature. It may contain lines, arcs, circles, splines, construction geometry, points, and reference entities. A sketch is normally attached to a datum plane, planar face, or explicitly defined coordinate system.
3.1 Geometric and dimensional constraints
Geometric constraints define relationships without necessarily specifying a numerical size. Typical constraints include:
coincident: two points occupy the same location;
horizontal or vertical: a line has a specified orientation;
parallel or perpendicular: angular relationships are maintained;
tangent: curves meet with a common tangent direction;
concentric: circles or arcs share a center;
equal: lengths or radii are identical;
symmetric: entities are mirrored about a centerline;
midpoint: a point lies at the midpoint of a segment;
fixed: geometry is prevented from moving.
Dimensional constraints define numerical properties such as distance, diameter, radius, angle, or arc length. They may be independent dimensions or expressions involving other parameters.
A good sketch normally uses geometric constraints to express relationships and dimensions to define size. Applying many independent dimensions to the same relationship can create redundancy and over-constraint.
3.2 Degrees of freedom
A degree of freedom (DOF) is an independent geometric movement still available to a sketch. In a planar sketch, a free point generally has two translational degrees of freedom. A free circle commonly has two positional degrees of freedom and one size degree of freedom, for a total of three. Constraints remove degrees of freedom.
This expression is a conceptual accounting relationship, not a universal solver equation. It assumes that constraints are independent and that no special geometric degeneracies exist. In practice, nonlinear constraints may interact, and the CAD solver determines the actual status.
A sketch may be:
under-constrained, with unintended movement remaining;
fully constrained, with all intended degrees of freedom removed;
over-constrained, with conflicting or redundant requirements;
inconsistent, where no geometry satisfies all constraints.
Fully constrained does not automatically mean well designed. A sketch can be fully constrained using many fixed entities or fragile dimensions. The objective is a meaningful, editable constraint structure.
3.3 Constraint strategy
A reliable sequence is:
Select the sketch plane and establish the intended origin.
Create construction geometry for centerlines, axes, and symmetry.
Add the main profile with approximate dimensions.
Apply geometric constraints before adding most numerical dimensions.
Locate the profile relative to the origin or datums.
Add driving dimensions and rename important parameters.
Inspect remaining degrees of freedom.
Test realistic parameter changes.
The origin should be used deliberately. Centering a symmetric part on the origin often makes mirror operations and assembly alignment easier. Conversely, forcing every profile through the origin can introduce incorrect design assumptions.
3.4 Driving and reference dimensions
A driving dimension controls geometry. A reference, or driven, dimension reports geometry without controlling it. Reference dimensions are useful for inspection and documentation, but they should not be confused with design inputs.
For example, if a rectangle is controlled by width and height, its diagonal should normally be a reference dimension. Attempting to control all three independently may over-constrain the sketch.
4. Feature Creation Methods
4.1 Extrusion and cut
An extrusion translates a planar profile along a direction to create a prism. A positive extrusion adds material; a cut extrusion removes material. End conditions may include a blind distance, through-all, up-to-face, mid-plane, or symmetric extent.
A prismatic extrusion created from a closed profile has, ideally, volume:
V = A × L
where V is volume, A is the area of the planar profile, and L is the extrusion length. The formula assumes a constant profile translated without scaling, rotation, or deformation. Units must be consistent; for example, if area is in mm² and length is in mm, volume is in mm³.
Extrusion is appropriate for plates, blocks, brackets, and many cast or machined prismatic components. A mid-plane extrusion is often more robust than a one-sided extrusion when the design is centered about a datum plane.
4.2 Revolve
A revolve rotates a profile about an axis to create rotational geometry. A full revolution is 360°, while partial revolutions create sectors or angled features. The profile must be compatible with the axis and must not generate invalid self-intersecting material.
For a simple ring formed by revolving a rectangular profile, the volume can be calculated using the washer method when the profile dimensions are known. In practice, CAD software evaluates the exact B-rep, including blends and cuts.
Revolve is preferred for shafts, pulleys, knobs, turned housings, and axisymmetric parts. The axis should normally be a stable datum axis rather than an incidental model edge.
4.3 Sweep
A sweep moves a profile along a path. The profile may remain normal to the path, maintain a specified orientation, or follow guide curves. Sweeps are used for pipes, seals, cables, handles, structural members, and variable-section features.
A sweep requires careful control of:
profile-to-path intersection;
profile orientation;
path continuity;
twist behavior;
guide-curve compatibility;
self-intersection and minimum radius.
A path with a sharp corner may create an abrupt orientation change or invalid geometry. Tangent-continuous paths usually produce more reliable results.
4.4 Loft
A loft creates a transition through two or more section profiles. Guide curves can control the shape between sections. Lofts are useful for ducts, aerodynamic forms, transition pieces, and molded components.
A successful loft requires compatible section topology. For example, profiles with different numbers or arrangements of edges may produce unexpected transitions. Start points, section orientation, guide curves, and continuity settings should be controlled deliberately.
Lofts can be geometrically flexible but are often less stable than simple extrusions or revolutions. They should be used when the shape genuinely requires a changing section, not merely because they are available.
4.5 Boolean operations
Boolean operations combine solids through union, difference, and intersection. They are useful for subtracting holes, creating clearance regions, and combining primitive volumes. Boolean validity depends on clean intersections and non-ambiguous boundaries. Coincident or tangent-only contacts may produce zero-thickness results or fail to create a valid solid.
5. Feature-Based Design Features
Holes
A hole feature is generally preferable to a sketched circle followed by a cut when the component requires a standard hole type. Hole features can specify diameter, depth, counterbore, countersink, thread representation, termination, and standard designation. They communicate manufacturing intent more clearly and can generate appropriate drawing annotations.
Fillets and rounds
A fillet replaces a sharp edge with a rounded transition. Fillets may reduce stress concentration, improve handling, support casting or molding, and remove sharp edges. However, a fillet radius must be compatible with adjacent faces and available material.
A large fillet applied early may alter faces needed by later features. Cosmetic edge fillets are often best placed near the end of the feature tree, while functional blends that define the primary shape may need to occur earlier.
Chamfers
A chamfer removes an edge with a planar bevel. Chamfers may assist assembly, deburr edges, provide tool access, or create a specified edge treatment. As with fillets, their order should reflect function and manufacturing sequence.
Shells and thickness
A shell offsets faces to create a hollow part with a specified wall thickness. Shelling can fail at narrow regions, sharp corners, small radii, or incompatible offsets. The selected open face and thickness must be consistent with manufacturing requirements and drainage or accessibility needs.
Drafts
Draft adds a taper to faces, usually to permit removal from a mold or die. Draft direction and neutral plane are manufacturing-critical parameters. A model intended for additive or subtractive manufacturing may not require the same draft treatment as an injection-molded part.
Ribs and webs
Ribs increase stiffness with relatively little material. Their thickness, root radius, height, and connection to surrounding walls affect strength, manufacturability, cooling, and sink marks in molded components. Ribs should be related to datum planes or primary faces rather than arbitrary edges whenever possible.
Patterns and mirrors
Patterns replicate features according to a rule:
linear patterns use direction, spacing, and instance count;
circular patterns use an axis, angular extent, and instance count;
fill patterns distribute instances over a region;
mirror features reflect geometry about a plane or face.
If n instances occupy an angular extent θ with equal spacing including both end positions, the angular pitch is:
Δθ = θ ÷ (n − 1)
This formula applies only when the pattern includes both endpoints. For a full circular pattern where the final instance coincides geometrically with the starting position, the usual pitch is:
Δθ = 360° ÷ n
These are different pattern conventions and must not be confused. CAD systems may provide options such as equal spacing, total angle, or spacing angle; the selected definition should be verified visually and numerically.
6. Feature Order and Reference Stability
Feature order should follow the functional logic of the part. A common sequence is:
primary datum or base feature;
major additive or subtractive shape;
secondary locating features;
functional holes and pockets;
patterns and mirrors;
ribs, shells, and drafts;
cosmetic fillets and chamfers.
This sequence is not universal. For example, a draft may need to precede a shell, and a functional fillet may define a later mounting face. The important principle is to minimize unnecessary dependencies and build from stable references.
References can be categorized as:
stable: origin planes, named datum planes, axes, and coordinate systems;
moderately stable: major planar faces intentionally created for reference;
fragile: small fillet edges, split edges, transient vertices, and automatically numbered faces.
When a reference to a face is unavoidable, select a face whose identity and purpose are likely to remain unchanged. Use explicit datum features when the reference is functionally important.
7. Robustness and Design Intent Analysis
Robustness can be evaluated through several questions:
Does the model regenerate after reasonable dimensional changes?
Are important relationships expressed as constraints or merely visual alignment?
Are dimensions duplicated unnecessarily?
Are standard features used where manufacturing meaning matters?
Does the feature tree reflect the component’s functional logic?
Are failure messages understandable and localized?
Can another engineer identify the principal design parameters?
A useful test is the parameter perturbation test. Change one major parameter at a time—for example, width, hole diameter, wall thickness, or pattern count—and observe whether the model remains valid. Then test combinations of changes near expected design limits.
Parameter limits should be treated as part of the design definition. A wall thickness cannot decrease below a manufacturing minimum; a fillet radius cannot exceed the available adjacent geometry; and a hole pattern cannot contain more instances than the available circumference permits without unacceptable overlap.
8. Worked Example: Parametric Mounting Bracket
Consider an illustrative L-shaped mounting bracket. The design requirements are:
horizontal base: 100 mm long and 60 mm wide;
vertical plate: 100 mm long and 80 mm high;
nominal material thickness: 10 mm;
two mounting holes in the base, symmetric about the width centerline;
two holes in the vertical plate, symmetric about its vertical centerline;
four triangular reinforcing ribs;
edge fillets of 4 mm where material and manufacturing allow.
Modeling strategy
First, establish the origin at the intersection of the base center plane and the vertical plate center plane. Create a constrained sketch for the base and extrude it symmetrically to produce the 60 mm width. Create the vertical plate from a sketch on the base’s rear datum plane, using a mid-plane or face-based reference according to the intended assembly interface.
The base and vertical plate may be joined by a union, or they may be created as a single profile if the cross-section is simple. A single base feature reduces Boolean dependencies, while separate features can make the functional construction clearer. The choice should reflect anticipated changes.
Next, create one mounting hole using a hole feature. Locate it with dimensions from stable centerlines, then create a mirror or linear pattern for the second hole. On the vertical plate, create one hole and mirror it about the vertical center plane. This expresses symmetry more reliably than dimensioning four separate locations.
Create one triangular rib on a datum plane and pattern it across the width. If the ribs must remain equally spaced when the bracket width changes, use a symmetric linear pattern with a named instance count. Apply functional fillets at the rib roots if required for stress reduction, then apply small external edge fillets near the end of the tree.
Design evaluation
The model should be tested by changing the base length, width, hole diameter, and rib count. If the holes remain symmetric, the ribs remain within the base boundaries, and the fillets regenerate, the design intent is functioning correctly. If a rib pattern fails when the width changes, its direction or reference may be tied to a fragile edge. Replacing that reference with a datum axis or center plane improves robustness.
The hole diameter must also be checked against assembly requirements. CAD geometry alone does not determine whether a hole is suitable; fit class, fastener standard, clearance, tolerance, and manufacturing process must be specified separately in engineering documentation.
9. CAD–CAM and Manufacturing Relevance
A feature-based model provides information used beyond visualization. CAM systems can recognize pockets, holes, planar faces, and cylindrical surfaces for toolpath planning. A model with meaningful hole features and consistent datum structure can reduce programming effort and improve process communication.
However, feature recognition is not infallible. A CAM system may interpret a modeled fillet as a finishing requirement, while the designer intended it only as a stress-relief geometry. Manufacturing processes also impose constraints not represented by nominal geometry alone: tool diameter, holder clearance, machine travel, workholding, tolerances, surface finish, and material behavior.
The designer should therefore distinguish:
nominal CAD geometry;
toleranced engineering definition;
process planning information;
inspection requirements.
A robust CAD model supports these activities but does not replace engineering judgment.
10. Common Failure Modes and Remedies
Under-constrained sketches
Symptom: geometry moves unexpectedly or changes shape during editing.
Remedy: inspect remaining degrees of freedom, anchor the profile to appropriate datums, and add meaningful geometric or dimensional constraints. Avoid solving the problem by fixing every entity unless the geometry is intentionally constructional.
Over-constrained sketches
Symptom: the solver reports conflicting or redundant constraints.
Remedy: identify the redundant dimension or relationship. Replace duplicated dimensions with reference dimensions, or remove a geometric constraint that is already implied by another condition.
Self-intersecting profiles
Symptom: an extrusion, revolve, or cut fails.
Remedy: inspect profile closure, overlapping segments, zero-length entities, and crossings. Use a simplified sketch and construction geometry where appropriate.
Feature regeneration failure
Symptom: downstream features become unresolved after an upstream change.
Remedy: examine the first failed feature, not only the last visible error. Replace fragile edge references, reorder features, add datum geometry, or revise dimensions that create zero-thickness conditions.
Excessive detail too early
Symptom: simple design changes cause many failures.
Remedy: model primary form first. Delay cosmetic fillets, chamfers, and small details until functional geometry is stable.
11. Contemporary Developments and Professional Practice
Modern CAD systems increasingly provide direct editing alongside history-based parametric modeling. Direct editing can be valuable when importing neutral geometry or making local modifications, but it may weaken explicit design intent if changes are not captured in parameters and relations.
Generative design and topology optimization can produce complex forms based on loads, constraints, and manufacturing processes. These results still require human interpretation, remodeling, validation, and documentation. Artificial intelligence is also being applied to feature recognition, constraint suggestion, design-space exploration, and automated drawing generation. Such tools can accelerate work but may infer incorrect intent, select unsuitable references, or produce geometry that is difficult to manufacture.
Professional governance requires version control, traceable design changes, appropriate licensing, protection of proprietary models, and review of automated outputs. A model used for production should be validated by a competent engineer and released through an approved configuration-management process.
Best-Practice Checklist
Before releasing a parametric part, verify that:
The primary datums and origin have a clear purpose.
Important sketches are fully constrained without unnecessary fixing.
Dimensions have meaningful names and units.
Symmetry, equality, and patterns are modeled explicitly.
Standard holes and manufacturing features use appropriate feature types.
Fragile references have been minimized.
The feature tree follows functional logic.
Reasonable parameter changes have been tested.
The final solid is valid and free of unintended gaps or zero-thickness regions.
Manufacturing, tolerance, material, and inspection requirements are documented separately where necessary.
Chapter Summary
Parametric sketching expresses geometry through dimensions and relationships, while feature-based modeling builds a part through meaningful additive and subtractive operations. Constructive solid geometry emphasizes combinations of primitives and Boolean operations; boundary representation defines solids through vertices, edges, faces, and closed shells. Modern CAD systems combine both approaches within a feature history.
A high-quality sketch uses geometric constraints to express relationships and dimensional constraints to define size. Under-constrained sketches retain unintended movement, whereas over-constrained sketches contain redundant or conflicting requirements. Full constraint status is useful only when it represents genuine design intent.
Extrusions, revolves, sweeps, lofts, patterns, mirrors, holes, fillets, chamfers, shells, drafts, and ribs provide a vocabulary for engineering design. Feature order and reference selection strongly influence model stability. Stable datums and explicit design relationships are generally preferable to incidental generated edges.
Robust modeling requires parameter testing, logical feature sequencing, manufacturing awareness, and controlled handling of automated tools. A parametric CAD model is most valuable when it communicates not only the current shape, but also the engineering reasoning that allows the shape to be modified safely.
Key Terms
Parametric modeling: Modeling in which dimensions, relationships, and feature parameters control geometry.
Design intent: The functional and geometric reasoning that a model is intended to preserve during modification.
Feature: A meaningful operation that adds, removes, or modifies material.
Constructive solid geometry: Solid representation using primitives combined by Boolean operations.
Boundary representation: Solid representation based on vertices, edges, faces, shells, and volume boundaries.
Boolean union: Operation that combines volumes into one region.
Boolean difference: Operation that subtracts one volume from another.
Sketch: A two-dimensional geometric definition used to create or control a feature.
Geometric constraint: A relationship such as tangency, parallelism, symmetry, or coincidence.
Dimensional constraint: A numerical requirement controlling length, radius, diameter, angle, or position.
Degree of freedom: An independent movement or variation available to geometry.
Driving dimension: A dimension that controls model geometry.
Reference dimension: A dimension that reports geometry without controlling it.
Datum: A stable reference plane, axis, point, or coordinate system.
Sweep: A feature created by moving a profile along a path.
Loft: A feature that transitions through two or more section profiles.
Pattern: A rule-based repetition of a feature or body.
Topological naming instability: Changes in face, edge, or vertex identity after model regeneration.
Regeneration: Recalculation of model features after a parameter or relationship changes.
Feature history: Ordered record of operations used to construct a model.
Review Questions
Short Answer Questions
What is the difference between a driving dimension and a reference dimension?
Define constructive solid geometry and name its three fundamental Boolean operations.
Why are datum planes often more stable than generated model edges?
What is meant by an under-constrained sketch?
State one appropriate application for a sweep and one for a loft.
Long Answer Questions
Explain how geometric constraints and dimensional constraints work together in a robust sketch.
Compare constructive solid geometry and boundary representation in terms of representation, advantages, and limitations.
Discuss how feature order influences regeneration reliability and design intent.
Explain the purposes and modeling considerations of holes, fillets, chamfers, shells, drafts, and ribs.
Describe a systematic method for testing and improving the robustness of a parametric part.
Analytical / Application Questions
A circular pattern is required to contain eight holes equally distributed over a complete 360° rotation. Determine the angular pitch and explain why the starting location is not repeated as a ninth distinct hole.
A bracket model fails whenever its width is increased because a rib pattern references a small external edge. Diagnose the likely cause and propose a more robust reference strategy.
Design a feature sequence for a molded mounting housing that includes a primary body, mounting holes, ribs, draft, shell thickness, and edge treatments. Justify the order and identify two parameter changes that should be used to test the model.
Multiple Choice Questions with Answers
Question 1
Which statement best describes design intent in a parametric CAD model?
A. The color and rendering style of the part
B. The functional relationships and assumptions the model preserves during change
C. The number of faces in the final B-rep
D. The file size of the CAD document
Correct Answer: B. The functional relationships and assumptions the model preserves during change
Question 2
Which operation subtracts one solid volume from another?
A. Union
B. Intersection
C. Difference
D. Pattern
Correct Answer: C. Difference
Question 3
A circle in a planar sketch normally has how many unconstrained degrees of freedom?
A. One
B. Two
C. Three
D. Four
Correct Answer: C. Three
Question 4
Which feature is most appropriate for creating a shaft from a radial profile?
A. Revolve
B. Loft
C. Shell
D. Linear pattern
Correct Answer: A. Revolve
Question 5
What is the principal purpose of a reference dimension?
A. To control the geometry independently
B. To report geometry without adding a driving requirement
C. To delete redundant constraints automatically
D. To create a Boolean union
Correct Answer: B. To report geometry without adding a driving requirement
Question 6
For a full circular pattern of n equally spaced instances, the usual angular pitch is:
A. 360° × n
B. 360° ÷ n
C. n ÷ 360°
D. 360° ÷ (n − 1) in every case
Correct Answer: B. 360° ÷ n
Question 7
Which reference is generally most stable for a mirror feature?
A. A small fillet edge
B. An automatically numbered vertex
C. A named datum plane
D. A temporary sketch segment from a deleted feature
Correct Answer: C. A named datum plane
Question 8
Which feature moves a profile along a specified path?
A. Sweep
B. Shell
C. Chamfer
D. Draft
Correct Answer: A. Sweep
Question 9
A sketch with conflicting or redundant requirements is described as:
A. Fully constrained
B. Over-constrained
C. Under-constrained
D. Patterned
Correct Answer: B. Over-constrained
Question 10
Why are standard hole features often preferred to a simple circular cut?
A. They always require no dimensions
B. They communicate manufacturing attributes such as type, depth, and thread more clearly
C. They eliminate the need for tolerances
D. They prevent every possible regeneration failure
Correct Answer: B. They communicate manufacturing attributes such as type, depth, and thread more clearly