# Replace the Routine: Keep the Goal, Change the Steps

> Users repeat habits from other apps. Learn how to change a routine by swapping one step while keeping the cue and reward.

**In short:** To replace a routine, keep the cue and reward and swap one step, since users repeat habits they learned in other apps.

From "UI/UX basics", a free course by Venkat R. Murty: https://designervenkat.online/learn/ui-ux/replace-the-routine

## What you will learn

People repeat actions without thinking. A user who has spent years in one app brings those habits to your design. This lesson shows how to change a habit by swapping one step, not the whole thing. You will learn the habit loop, a simple rule for replacing a routine, and how to apply it to a screen.

- **Habit:** An action you repeat so often that it starts to feel automatic.
- **Cue:** The signal that starts a habit.
- **Routine:** The steps you take after the cue appears.
- **Reward:** The payoff that satisfies what you wanted, and makes you want to repeat the routine.
- **Habit loop:** The cycle of cue, routine, and reward that keeps a habit going.
- **Interface:** The screens, buttons, and menus a person uses in a product.

## What is the habit loop?

Charles Duhigg described habits as a loop in his book The Power of Habit. The Decision Lab uses the name Cue-Action-Reward model for the same idea. A cue can be a feeling, such as stress, or something outside you, such as a time of day.

- **Cue:** The signal that starts the habit. It might be a feeling, a place, a time, or something that just happened.
- **Routine:** The action you take after the cue. With practice, it runs almost on its own.
- **Reward:** The payoff that meets the need behind the action. Without it, there is little reason to repeat the routine.

## What is the replacement rule?

You cannot simply delete a habit. One guide to habit loops says you can replace the routine instead.

1. **Find the cue:** Write down what starts the old habit. Is it a moment in a task, a feeling, or a certain screen?
2. **Name the reward:** Ask what the person gets from the old routine. It might be speed, comfort, or a sense of control.
3. **Keep both the same:** Do not move the trigger or change the payoff. The person should still feel the same pull and get the same result.
4. **Write an easier routine:** Offer a new action that reaches the same reward in fewer steps. Routinery suggests replacing the routine with something easier.
5. **Watch what people do:** Check whether people use the new routine without being told. Habits take repetition before they stick.

## Replacing routines in interfaces

Users arrive with habits from every product they already use. So the safe move is often to keep the familiar routine and change only the step that causes trouble.

### Why do old habits stick?

A new routine therefore needs practice, not just a clear label.

### A worked example: unlabelled icons

The goal stayed the same. The routine just became easier to read.

## Try it: swap a routine in code

This short program models the file-saving example. The cue and the reward stay fixed. Only the routine changes.

```python
# A habit loop: cue, routine, reward.
old = {'cue': 'wants to save a file', 'routine': 'open File menu, then Save As', 'reward': 'file is saved'}
new = dict(old, routine='press Ctrl+S')
for name, loop in [('Old', old), ('New', new)]:
    print(name, '->', loop['cue'], '|', loop['routine'], '|', loop['reward'])
print('Same cue:', old['cue'] == new['cue'])
print('Same reward:', old['reward'] == new['reward'])
```

Output:

```text
Old -> wants to save a file | open File menu, then Save As | file is saved
New -> wants to save a file | press Ctrl+S | file is saved
Same cue: True
Same reward: True
```

## Check yourself

**Quick check:** You want users to switch to an easier routine. Which part should stay the same?

A. The cue and the reward
B. The routine only
C. All three parts, cue, routine, and reward
D. The reward only, with a new cue

**Answer:** A. The replacement rule keeps the cue and reward the same and changes the routine. That way the person still feels the same pull and gets the same result.

## Key points

A habit is a loop of cue, routine, and reward. To change one, keep the cue and reward, then offer a simpler routine. Test the new steps with real people and give short help at the moment it is needed.

> **Tip:** Before you redesign a routine, write down the cue and the reward in one sentence each. If you cannot name them, you are not ready to change the steps. Use the loop to make tasks easier, not to trap people into returning.

## Sources

- [The Decision Lab, CAR Model (Cue-Action-Reward)](https://thedecisionlab.com/reference-guide/psychology/car-model)
- [ModelThinkers, Habit Loop](https://modelthinkers.com/mental-model/habit-loop)
- [Tougher Minds, Understanding the Habit Loop: Cue, Routine, Reward](https://www.tougherminds.co.uk/2024/08/27/understanding-the-habit-loop-cue-routine-reward/)
- [Routinery, The Habit Loop Explained (Cue, Routine, Reward)](https://www.routinery.app/blog/habit-loop-explained)
- [Success Odyssey Hub, The Habit Loop: Cue, Routine, Reward Explained by Science](https://successodysseyhub.com/blog/habit-loop-explained)
- [eChai, Nielsen Norman Group summaries (Starting Up)](https://echai.ventures/startingup/from/nielsen-norman-group)
- [Medium, Design for the Human Mind: How Cognitive Science Shapes UX Design](https://medium.com/design-bootcamp/design-for-the-human-mind-how-cognitive-science-shapes-ux-design-f0b83e3da6b6)
