remain available, after the funds under such headings have been allocated for necessary expenses for activities authorized under such headings, shall be allocated to grantees receiving awards for disasters that occurred in 2018 or 2019, for mitigation activities in the most impacted and distressed areas resulting from a major disaster that occurred in 2018 or 2019: Provided further , That allocations under the previous proviso shall be made in the same proportion that the amount of funds each grantee received or will receive under this heading for unmet needs related to disasters that occurred in 2018 or 2019 and the same heading in division I of Public Law 115–254 bears to the amount of all funds provided to all grantees that received allocations for disasters that occurred in 2018 or 2019: Provided further , That of the amounts made available under the text preceding the first proviso under this heading and under the same heading in Public Law 115–254 , the Secretary shall allocate to all such grantees an aggregate amount not less than 33 percent of the sum of such amounts of funds within 120 days after the date of enactment of this Act based on the best available data, and shall allocate no less than 100 percent of such funds by no later than 180 days after the date of enactment of this Act: Provided further , That the Secretary shall not prohibit the use of funds made available under this heading and the same heading in Public Law 115–254 for non-Federal share as authorized by section 105(a)(9) of the Housing and Community Development Act of 1974 ( 42 U.S.C. 5305(a)(9) ): Provided further , That of the amounts made available under this heading, grantees may establish grant programs to assist small businesses for working capital purposes to aid in recovery: Provided further , That as a condition of making any grant, the Secretary shall certify in advance that such grantee has in place proficient financial controls and procurement processes and has established adequate procedures to prevent any duplication of