peace_ai_desires = {

    	give_this_state_to_the_suitable_potential_keeper = {
        	peace_action_type = { take_states }
        	enable = {
			is_historical_focus_on = no
			ROOT = { NOT = { tag = ROOT.FROM } }
			ROOT.FROM = { 
				is_in_faction_with = ROOT
			}
            		NOT = {
				any_country = {
					is_in_faction_with = ROOT
              			  	pc_is_on_same_side_as = ROOT
              			  	pc_is_liberated = no
              			  	pc_is_puppeted = no
					OR = {
						FROM.FROM.FROM = { is_core_of = PREV }
						FROM.FROM.FROM = { is_claimed_by = PREV }
					}
				}
			}
			check_if_this_state_is_suitable = yes
       		}
        	ai_desire = 500
    	}
}