in some cases the state change function does not reach all components.
in some cases the state change function does not reach all components.