I think this should be using the `set()` method rather than `add()`