; and , and by adding at the end the following new paragraph: (14) contributions to a Catastrophe Savings Account (as defined in section 530A(b)) during the taxable year to the extent such contributions are not excess contributions (as defined in section 4973(i)). . (e) Custodial accounts treated as trust For purposes of this section, a custodial account shall be treated as a trust if— (1) the assets of such account are held by a bank (as defined in section 408(n) of the Internal Revenue Code of 1986) or another person who demonstrates, to the satisfaction of the Secretary of the Treasury, that the manner in which such person will administer the account will be consistent with the requirements of this section, and (2) the custodial account would, except for the fact that it is not a trust, constitute a Catastrophe Savings Account (as defined in section 530A(b) of the Internal Revenue Code of 1986). In the case of a custodial account treated as a trust by reason of the preceding sentence, the custodian of such account shall be treated as the trustee thereof for purposes of the Internal Revenue Code of 1986. (f) Effective date The amendments made by this section shall apply to taxable years beginning after December 31, 2017. III Other permanent tax provisions 301. Repeal of limitation on cover over of distilled spirits taxes to Virgin Islands and Puerto Rico (a) In general Section 7652 of the Internal Revenue Code of 1986 is amended by striking subsection (f) and by redesignating subsections (g) and (h) as subsections (f) and (g), respectively. (b) Effective date The amendments made by this section shall apply to distilled spirits brought into the United States after December 31, 2016. 302. Deduction for income attributable to domestic production activities in Puerto Rico made permanent (a) In general Section 199(d)(8) of the Internal Revenue Code of 1986 is amended by striking subparagraph (C). (b) Effective date The amendment made by this section shall apply to taxable years beginning after December 31, 2016.