change state to boolean