rename to on_atomic_change