activating and deactivating AFI