fixed a reactivity pattern