update getTargetStates and addDescendantStatesToEnter