Pacific Steel · FIRST Robotics Competition Team 5025 · Technical whitepaper · October 2026
Abstract
Play 5025 is a browser-based, interactive model of the 2026 REBUILT game. It combines a four-module swerve-drive model, three-dimensional fuel flight and collisions, robot mechanisms, game timing, selected rule logic, autonomous path following, computer-controlled alliance partners, replay, and a server-authoritative multiplayer loop. Its purpose is to make match timing, driver practice, mechanism interactions, and alliance strategy explorable in a browser.
This paper describes the implementation as it exists in the Play 5025 codebase. It gives the model equations, representative TypeScript, fixed-step scheduling, data representation, and current limitations. The result is a deterministic-style game simulation under a seeded random stream, not an official FIRST product, a certified rules engine, or a high-fidelity digital twin of Team 5025's physical robot. A few drivetrain and game parameters come from the team; many parameters are engineering approximations chosen to produce coherent, responsive play. We label those categories separately throughout.
1. Goals and boundaries
The simulator was built to answer practical questions: Can a driver feel the swerve response? How do robot motion and shooter angle affect a shot? How does collection time compete with scoring time? What changes when a hub becomes inactive? How might three robots share fuel and space? Can students explore these questions without installing robot code or joining a live event?
The design follows four principles:
- One simulation path for play. Human controls, auto routines, and bot policies produce controls that enter the same robot and match update functions.
- Motion has consequences. Robots and fuel move through state updates, contacts, and constraints. A path or aiming target is not a teleport.
- Separate authoritative state from presentation. In multiplayer, the server advances the match and scores; the browser displays snapshots and interpolates visual motion.
- Make assumptions inspectable. Team-supplied values, derived dimensions, and tuned estimates are documented separately so future measurements can replace assumptions.
The simulator does not model every internal motor-controller detail, every carpet variation, every field tolerance, or every official referee interpretation. It does not currently simulate climbing. Its selected penalties and scoring logic are useful for learning the modeled game, but an official 2026 game manual and event staff remain authoritative for competition play.
2. System architecture
The implementation is organized into focused layers:
| Layer | Main responsibility | Representative source |
|---|---|---|
| Robot and field physics | Chassis motion, swerve modules, fuel flight, field contact, intake, hopper, shooter | app/play/rebuilt/physics.ts, hopper-physics.ts |
| Match and rules | Phases, shared world, scoring, outposts, fouls, placement checks, match frames | match.ts |
| Autonomous | Spline sampling, speed profile, path follower, waypoint mechanism actions | autonomous.ts |
| Computer drivers | Roles, density-based fuel collection, A* routes, lane and teammate awareness | bot-driver.ts |
| Network protocol | Compact controls, changed-state snapshots, fuel deltas, acknowledgements | network-v2.ts, network.ts |
| Runtime | Cloudflare Worker and Durable Object, WebSockets, authoritative 120 Hz loop | worker/index.ts |
| Solo recording | Local fixed-step run, sparse input changes, checkpoints, plausibility scan | solo-run.ts |
At a high level, the authoritative match update is:
For multiplayer, this update runs on the server. The server broadcasts a compact representation of the resulting state. In solo mode, the browser runs the same match update locally using a server-issued ticket and seed; the server receives a recording and applies a plausibility scan before a result can be saved. Those paths share simulation code but do not currently have identical trust guarantees; see §11.
3. Coordinate system, units, and robot configuration
The physics code uses SI units for length, mass, time, and velocity. The field's origin is at one corner. The -axis runs across the field's long direction, across its width, and vertically. Chassis heading points along positive . Angles are in radians. The robot's module offsets are expressed in its local body frame; robot pose and fuel positions are expressed in the field frame.
3.1 Team inputs and explicit estimates
| Parameter | Value represented in code | Status |
|---|---|---|
| Robot mass | Team-provided | |
| Frame width | Team-provided | |
| Frame length | Team says square frame | |
| Maximum speed | Team-provided target / free-speed setting | |
| Modules | MK4n, L1 gearing | Team-provided configuration; motor curve is not modeled from measured data |
| Bumper envelope | square | Derived estimate: frame plus 2 in bumper extension on each side |
| Wheelbase and track in kinematics | each | Modeling value, not measured module-center spacing |
| Steering rate limit | Tuned simulation value | |
| Friction coefficient | Tuned simulation value | |
| Effective wheel drive force | per simulated module | Tuned simulation value |
The bumper collision square is a convenient envelope, not a CAD-derived bumper mesh. The module spacing used by the kinematics is distinct from the 27.5 in frame width and should not be interpreted as an as-built dimension. The top-speed setting does not itself validate acceleration or turning performance against robot logs.
The modeled REBUILT field dimensions are , or approximately . Hub, bump, tower, trench bar, depot, and outpost locations are represented in the field model. Collision bodies and scoring openings are simplified shapes chosen for interactive simulation.
4. Fixed-step simulation and state integration
The match loop advances at , so a normal physics step is
The Worker accumulates elapsed wall-clock time and consumes whole fixed steps. Fixed time steps make contact resolution and control response less sensitive to frame-rate variation. The browser may render at a different rate; rendering is not the physics clock.
Representative server scheduling:
this.accumulator += elapsedSeconds;
while (this.accumulator >= 1 / 120) {
const controls = collectPlayerAndBotControls(this.room, this.inputs, this.match);
advanceMatch(this.match, this.room.members, controls, 1 / 120);
this.accumulator -= 1 / 120;
}
At each match step, the match layer determines controls (including autonomous overrides), updates every robot, resolves robot contacts and rule events, advances the shared fuel world, and checks for completion. In multiplayer, every robot references the same world fuel and shot arrays, preventing separate client copies from independently awarding the same ball.
The robot state includes pose , field velocity , angular velocity , vertical pose and velocity , pitch and roll with rates, four module states, fuel, shot cooldown, intake deployment and flex, hopper contents, scoring counters, and contact/damage state. Some visual-only state is intentionally omitted from network frames or rounded before transmission.
5. Four-module swerve model
5.1 Field-relative command to module targets
The controls expose a normalized field-relative translation and normalized turn input. Translation is scaled to the configured top speed and clamped to a circle, preventing diagonal commands from exceeding the same maximum vector magnitude. It is then rotated into body coordinates:
For module at body-frame location , rigid-body kinematics give:
If any requested module speed exceeds the drive limit, all module speeds are desaturated by the same ratio. Each wheel can reverse its drive direction when rotating its steering target by more than would be slower. Steering angle changes are rate-limited. Drive output is also scaled by the angular alignment between current and requested wheel orientation.
const targets = modules.map(m => ({
x: bodyX - requestedOmega * m.y,
y: bodyY + requestedOmega * m.x,
}));
const desaturation = Math.max(
1,
...targets.map(t => Math.hypot(t.x, t.y) / ROBOT.topSpeed),
);
This is the kinematic target stage; the chassis does not instantly adopt the target velocity. The next stage computes forces from wheel states and current motion.
5.2 Traction and force integration
The model estimates a per-wheel normal load from local terrain height, wheel height, and vertical velocity. Available longitudinal force decreases as a wheel approaches its configured free speed. Lateral tire force opposes sideways slip. The combined force is limited by an approximate friction circle:
Forces are projected into the field frame and summed. Their moments about the robot's center update yaw. Translation and yaw use a semi-implicit Euler step; vertical support, pitch, and roll are integrated separately from the four wheel contacts.
const normal = clamp((ground.height + .035 - wheelZ) * 7000 - wheelVz * 260, 0, 1200);
const available = driveForce * Math.max(.1, 1 - Math.abs(moduleSpeed) / freeSpeed);
let longitudinal = clamp((targetSpeed - moduleSpeed) * 70 + feedforward,
-available, available);
let lateral = -sideSlip * 140;
const grip = friction * normal;
const scale = Math.max(1, Math.hypot(longitudinal, lateral) / grip);
longitudinal /= scale;
lateral /= scale;
The code's normal-load spring and damper constants, force gain, lateral gain, friction estimate, and drag terms are game-tuned parameters. They are not measured MK4n motor curves, wheel friction tests, or a validated suspension model. Their purpose is to create bounded, legible swerve response and meaningful weight transfer/contact behavior.
5.3 Bumps, airborne time, and collision
Terrain height is sampled under the four module locations. Different wheel heights create chassis pitch and roll; a loss of normal support can produce brief airborne motion. Obstacles are represented by simple collision rectangles and selected elevated structures such as trench bars have explicit vertical clearance logic. Robot-to-robot bumpers use oriented rectangle contact and an impulse. The intake has separate collision solids, so an extended side cheek can touch a wall, ball, or another robot independently of the bumper frame.
These constraints improve the relationship between a requested route and actual movement, but the solver is not a rigid-body CAD engine. It does not resolve detailed flex in every frame member or every contact patch. A technically “legal” or “illegal” path in the model is only as complete as the encoded geometry and rules.
6. Fuel, mechanism, and projectile simulation
6.1 Three-dimensional fuel flight
Each fuel object carries , velocity , ownership/scoring metadata, and state flags. In free flight, the implementation applies speed-proportional exponential drag and gravity, then integrates position:
with code values and . Here is an empirical game parameter in the implementation's chosen units, not a measured aerodynamic drag coefficient for the REBUILT fuel. Floor contact transitions to a rolling model with terrain slope and damping. Fuel collides with field boxes, the hub guide and opening, robots, intake solids, and other fuel.
Fuel-to-fuel pairs are localized with spatial buckets sized around one ball diameter. That reduces unnecessary all-pairs checks when many balls are on the field. The collision response is an approximate positional correction and impulse; it is not a deformable-ball contact model.
6.2 Hub, guide, net, and score event
The hub is not treated as a single point target. Its guide, opening throat, floor, and back structures are represented as simple 3D boxes and geometric opening checks. Fuel is counted only after descending through the lower throat and fitting the opening. This prevents a ball that merely passes close to the hub from automatically scoring.
6.3 Intake and hopper
The intake is modeled with an extension state, side collision solids, roller-mouth capture region, flex, and damage. Fuel can enter only when it crosses the deployed intake's front capture zone at a valid height and the robot is grounded, with remaining storage capacity. The fuel is removed from the shared field and represented by a short transfer animation before being added to a loose, robot-local 3D hopper. Hopper balls have their own relative positions and velocities and collide as the robot moves; they are not laid out in a fixed grid. The shooter feeder removes balls from the hopper over time.
The modeled capacity is 34 and the firing cadence is 10 fuel per second, both supplied by the team. Intake damage includes bends, a more restricted capture opening, reduced deployment speed, a wire-connected hanging state, and a fully detached physics object. Damage thresholds and wear rates are gameplay estimates; they are not test-derived break loads for the hardware.
6.4 Fixed-angle shooter and movement-compensated aim
The configured shooter is a triple shooter with a fixed hood angle of , chosen within the team's stated – range. Distance changes through launch speed rather than hood articulation. The aim solver simulates the same drag/gravity integration used for fuel and numerically searches for launch speed and heading that bring the projectile to the target height and position.
The muzzle's initial velocity includes the chassis's translational velocity and the tangential velocity due to yaw:
where is muzzle offset, is the fixed hood angle adjusted by chassis pitch, and is the horizontal launch direction. This inherited velocity is why a shot taken while moving must lead the target. The aim-assist controller uses a bounded angular command with braking and velocity feedforward rather than an unconstrained integral term.
const muzzleVelocity = {
x: directionX * launchSpeed * Math.cos(elevation) + robot.vx - robot.omega * muzzle.ry,
y: directionY * launchSpeed * Math.cos(elevation) + robot.vy + robot.omega * muzzle.rx,
z: launchSpeed * Math.sin(elevation) + robot.vz,
};
Scoring mode is selected when the robot's bumper envelope is in its alliance zone or the robot is on its alliance bump. Otherwise, the current mechanism uses a lower-arc pass toward its own end of the field. These are encoded game behaviors, not a guarantee of a successful shot: ball-to-ball or field contact, limited launch speed, and state changes before release can still affect the outcome.
6.5 Human-player and outpost interactions
Outposts have a chute, corral, door/cooldown state, and optional automatic behavior. Manual throws accept a target; automatic returns use a stochastic accuracy envelope and a launch cadence. This provides a practice interaction and visible variability, but the throw percentages are tunable approximations rather than validated population measurements. The simulator's human-player model should be treated as a game mechanic, not a scouting-grade prediction of a real volunteer's performance.
7. Match clock, scoring, and selected rules
The match model represents a 20-second autonomous period, a three-second fuel-processing grace interval, a transition, alternating hub activation shifts, and endgame/final scoring settlement. The exact current phase schedule is encoded in phaseAt in match.ts. The referee layer tracks fuel scoring, selected launch-zone restrictions, autonomous midfield/contact constraints, pinning timers, selected endgame contact, and other implemented penalties. A persistent collision-integrity check can invalidate a ranked multiplayer run if the simulated state remains deeply interpenetrating.
The phase clock influences both scoring and bots. Hub activity is evaluated at the scoring event, with the post-shift grace modeled separately; it is not inferred from what the screen appears to show. Penalty points are assigned to the opposing alliance by the match rules code. The game implements a bounded subset of the 2026 rules, not every clause, exception, tournament interpretation, or referee discretion.
For any real match decision, use the latest official FIRST REBUILT resources and game manual. Game manuals can receive updates and Team 5025's implementation may not yet reflect every revision.
8. Autonomous routines and visual path editing
8.1 Path construction
Waypoints store field position and may include desired robot heading, intake state, feed state, and a shoot action. Consecutive points are sampled into a cubic Catmull–Rom spline. The resulting samples are annotated with cumulative arc length and a local curvature estimate. The editor is a path design tool; the runtime follower controls the simulated robot through ordinary swerve commands and wheel forces.
For control points , the spline segment is:
8.2 Speed profile and follower
The path uses a backward braking pass. If a later point has allowable speed and is distance away, the earlier point is capped by:
where the current configured braking estimate is . The path follower adds position feedback, velocity damping, heading control, and collision/path-reacquisition behavior. Translation and heading are decoupled for swerve: the robot can travel along a curve while rotating toward its next shooting heading. When an auto action requests a shot, it brakes and settles before feeding the shooter.
for (let i = path.length - 2; i >= 0; i--) {
const next = path[i + 1];
path[i].limit = Math.min(
path[i].limit!,
Math.sqrt(next.limit! ** 2 + 2 * braking * (next.distance - path[i].distance)),
);
}
The current spline implementation does not claim a formal jerk bound or a full model-predictive controller. At the end of a path, it may reduce speed to meet a requested stop; on a straight segment it can request the robot's maximum configured speed. Contact can still make the actual trajectory differ from the planned curve.
8.3 Shared autonomous constraints and collision recovery
For team autos, candidate routes are sampled into time-position traces. Bots compare their candidate route against already-occupied human and bot routes, then choose among scoring, collecting, and cycling plans with a route-conflict cost. During execution, the follower reacquires the nearby part of its current path after contact rather than snapping to the end. A local speed reduction is used when an allied robot blocks the forward route. The drivetrain contact solver remains responsible for actual collision response.
9. Computer-controlled drivers
Bots use the same Controls shape as players: normalized forward/sideways/turn commands and mechanism booleans. Their decision system chooses roles such as scoring, collecting, staging, passing, guarding, or defending. It considers alliance, robot and teammate poses, inventory, current hub state, time remaining, opponent threat, and whether a shot or collection cycle can finish in time.
9.1 Density-based fuel collection
The field is divided into cells. Each free ball contributes to its nearby cells with a distance-weighted kernel. The current implementation spreads the neighborhood across three cell indices in each direction and applies an exponential weight:
where is the count of available fuel in a cell. Candidate patches are scored by expected ball yield divided by the estimated full cycle time:
The expected yield is capped by remaining capacity. The controller rejects or discounts a collection trip when the time needed to collect and convert the fuel into points exceeds the remaining match time. It uses a route estimate for promising patch candidates instead of ranking all fuel solely by Euclidean distance. Teammate reservations reduce duplicate work. This is a heuristic utility model, not a learned policy or a measured optimal strategy.
9.2 A* route planning and obstacle clearance
The navigation grid has cells. Cells are blocked when their center lies too close to a field obstacle after adding an allowance based on the robot's bumper diagonal and a clearance margin. A* uses eight-connected movement, an octile-distance heuristic, and rejects diagonal corner cutting. The resulting grid path is simplified by line-of-sight checks to produce longer, smoother waypoints.
const candidateCost = cost[current] + PATH_STEP * (dx && dy ? Math.SQRT2 : 1);
const priority = candidateCost + octileDistance(nextCell, goalCell);
The path planner routes around modeled static obstacles, while the feedback controller handles dynamic motion. Robots and balls can occupy an intended route after planning, so bot control also refreshes routes, tracks progress, shares space reservations, and applies recovery behavior if movement stalls. These techniques reduce common traps; no planner can guarantee that a robot never gets stuck under every arrangement of robots, balls, and contact constraints.
9.3 Team behavior and levels
Bot levels adjust decision aggressiveness, pace, and behavior quality; they do not change the physical laws of a bot's drivetrain. Autonomous assignment precomputes teammate routes and penalizes overlapping paths. During teleop-like phases, the role policy allocates bots between dense collection areas, scoring locations, passing, and defense. Candidate scoring stations are assigned with occupancy and priority to reduce several bots selecting the same point.
The bot policy is rule-based and interpretable. It does not use a neural policy trained on human match data, live field vision, or a full FRC scouting database. Its trajectory estimates, collection time, and decision thresholds are approximations. The best way to improve it is to gather controlled match traces and compare predicted decisions with recorded high-level strategy.
10. Networking, snapshots, and replay
10.1 Authoritative server
For multiplayer, the Durable Object owns the match state, receives player inputs, advances bot and human controls, resolves scoring and penalties, and emits snapshots. Client inputs are validated and bounded before being converted into controls. The server simulates at 120 Hz; snapshot delivery uses adaptive intervals informed by acknowledgement, round-trip time, and in-flight data. This separates simulation frequency from network frequency.
10.2 Compact input messages
An input message is encoded as a 12-byte binary packet: a one-byte type, a four-byte sequence number, three signed 16-bit axes, and one flags byte. Each axis is quantized from ([-1,1]) to ([-32767,32767]). Flags represent shooting, braking, intake, climb, and aim assist.
This representation makes frequent control packets small while preserving enough axis precision for a browser game.
10.3 Changed-state snapshots
The snapshot encoder compares the current frame with its prior frame. It sends changed metadata and per-robot properties, removes entities that disappeared, and uses separate ball deltas for fuel and shots. Ball records are quantized to millimeter position/velocity resolution for the snapshot representation. Periodic full resets and sequence/base identifiers allow a client to recover if it misses a delta. Fuel far from a player's robot may be sent less frequently; nearby balls and airborne projectiles receive higher update priority.
const patch = difference(currentRobotState, previousRobotState);
if (Object.keys(patch.set).length || patch.remove.length) {
changedRobots.push({ id: robot.id, patch });
}
The client only applies a delta when its base sequence matches the current decoded state; a reset clears the base and reinitializes the decoder. Rendering can interpolate between snapshots, but the browser does not independently award scores.
10.4 Replay data
Multiplayer replay frames are serialized in chunks and stored through the replay service. The browser can seek and export a replay; it does not require retransmitting an entire match history in every live snapshot. Replay data is a record of the simulation's results, not a proof that a corresponding real-world match occurred.
11. Solo runs, accounts, and integrity limits
Solo gameplay runs locally in the browser at for ticks, or , including the final scoring-settle interval. A server ticket supplies a run identifier, version, random seed, expiry, and player identity. The client records control changes rather than repeating identical controls every tick, plus periodic score/position checkpoints and human-player events.
The current server validation checks recording shape and bounds, monotonic tick ordering, plausible scoring/firing/throw rates, checkpoint continuity, field position, approximate movement envelopes, and consistency between final score and final checkpoint. It is explicitly a plausibility scan, not a replay. The server does not currently reconstruct the full solo match from the input stream and independently recompute every collision and score. Therefore, “verified” in the solo leaderboard flow must not be read as cryptographic proof or authoritative replay validation. Multiplayer scores have a stronger property because the live multiplayer match is simulated by the server itself.
Account sign-in is required to retain leaderboard scores and replays. Free play remains available without signing in, but persistence is limited. Identity is account-based; client-supplied display names do not grant team or developer privileges.
12. Reproducibility and implementation excerpts
12.1 Kinematic module target
function moduleVelocity(bodyX: number, bodyY: number, omega: number,
moduleX: number, moduleY: number) {
return {
x: bodyX - omega * moduleY,
y: bodyY + omega * moduleX,
};
}
12.2 Shared match update
function advanceMatch(match, drivers, controls, dt) {
match.elapsed += dt;
match.phase = phaseAt(match);
for (const robot of match.robots) {
const input = resolveHumanOrAutoControl(robot, drivers, controls, match.phase);
step(robot, input, dt, { sharedWorld: true });
}
resolveContactFoulsAndRobotContacts(match, controls, dt);
advanceWorld(match.world, dt, awardScore, true, match.robots);
}
The excerpt communicates ordering, not a standalone replacement implementation; production functions also handle grace periods, event details, integrity checks, outposts, and game settings.
12.3 Fuel trajectory integration
function advanceFlight(ball, dt) {
const drag = Math.exp(-0.045 * magnitude(ball.velocity) * dt);
ball.vx *= drag;
ball.vy *= drag;
ball.vz = ball.vz * drag - 9.81 * dt;
ball.x += ball.vx * dt;
ball.y += ball.vy * dt;
ball.z += ball.vz * dt;
}
The real code applies collision and ground-contact checks around this update. The shortened example isolates the free-flight step.
13. Validation plan and data needed
The model can become more accurate by comparing it with robot and field measurements. A useful calibration dataset would include:
- Straight-line acceleration and braking at several battery states.
- A step response in yaw, plus rotation while translating.
- Bump traversals at multiple speeds with recorded pose and pitch/roll.
- Module-center spacing, robot center of mass estimate, and robot mass with battery and bumpers.
- Shooter exit speed and launch dispersion across distance, battery voltage, and stored-ball conditions.
- Intake capture success and damage observations from controlled contact trials.
- Fuel bounce/rolling behavior on representative competition carpet.
- Human-player throw cadence and accuracy measured under a defined target and distance protocol.
For a measured position trajectory and simulated trajectory , sampled at aligned times, the position error can be summarized as:
Velocity, heading, and shot landing errors should be reported separately:
Calibration should use separate fit and holdout runs. Otherwise, tuning constants to one demonstration can make the model look accurate without generalizing to a different speed, direction, or battery condition. A future technical release should publish test conditions, measured traces, parameter version, and error distributions, not just a single average.
14. Limitations and responsible interpretation
- Not a digital twin. The code uses a point-mass chassis approximation with four force-producing modules and simplified rigid collision shapes. It does not model every motor electrical characteristic, controller loop, wheel deformation, frame flex, suspension, battery sag, or carpet variation.
- Geometry is selective. The field and mechanisms use simplified collision volumes and openings. Small field setup differences can change a close shot or contact result.
- Some constants are tuned. Friction, normal-load stiffness/damping, force gains, drag, restitution, intake wear, and human-player accuracy need measurement before they can be treated as predictive.
- Rules coverage is partial. Implemented fouls reflect only selected game rules and interpretations. The official manual and event referee decide real calls.
- Bots are heuristics. They reason over available simulated state rather than camera images, scouting reports, or rich human communication. Their roles and utility estimates are designed for game participation, not to prescribe an event strategy.
- Network quality varies. Server authority prevents divergent client scoring, but latency, packet loss, device performance, and adaptive snapshot intervals still affect how responsive a remote match feels.
- Solo result checks are not full replay verification. The current solo result path checks plausibility envelopes and client-reported checkpoints. It does not independently rerun every solo tick on the server.
We intend the simulator to invite experimentation, not overconfidence. A virtual high score is not a prediction of an official match score. A simulated path is not a substitute for field testing, safety review, or robot code validation.
15. Conclusion
Play 5025 brings the main pieces of a REBUILT match into a single browser experience: driver input, swerve response, robot mechanisms, fuel flight, active scoring windows, autonomous paths, alliance bots, network play, and replay. The implementation's central engineering choice is to route these behaviors through a shared state model and explicit match clock, while keeping multiplayer scoring server-authoritative.
Its value today is as a fast, accessible environment for learning the game and testing strategy ideas. Its path to greater realism is equally clear: measure the 5025 robot, compare those traces against the model, publish uncertainty, and replace tuned estimates with evidence as it becomes available.
Sources and further reading
- FIRST, 2026 REBUILT game resources — current official game manual and updates.
- FIRST, 2026 REBUILT game overview.
- FIRST, 2026 REBUILT game cheat sheet.
- Team 5025, Play 5025 — interactive simulator.
- Team 5025, 2026 season record — event results and team record.
This whitepaper describes the implementation and assumptions in Play 5025 as of October 2026. The simulation, rules coverage, constants, and network protocol may change as the team measures the real robot and improves the software.