; and (ii) shall reallocate amounts returned under clause (i) for grants under this title to other States that are not sanctuary jurisdictions. (B) Unit of general local government If a unit of general local government is a sanctuary jurisdiction during the period for which it receives amounts under this title, any such amounts that the unit of general local government received for that period— (i) in the case of a unit of general local government that is not in a nonentitlement area, shall be returned to the Secretary for grants under this title to States and other units of general local government that are not sanctuary jurisdictions; and (ii) in the case of a unit of general local government that is in a nonentitlement area, shall be returned to the Governor of the State for grants under this title to other units of general local government in the State that are not sanctuary jurisdictions. (C) Reallocation rules In reallocating amounts under subparagraphs (A) and (B), the Secretary shall— (i) apply the relevant allocation formula under section 106(b), with all sanctuary jurisdictions excluded; and (ii) shall not be subject to the rules for reallocation under section 106(c). . (c) Effective date This section shall take effect on October 1, 2017.