make possible to change state outside