; and (ii) submitted to the Committee on the Judiciary of the Senate and the Committee on the Judiciary of the House of Representatives. (d) Applicability (1) Definitions In this subsection, the terms application , criminal surveillance order , and inventory have the meanings given such terms in section 3131 of title 18, United States Code, as added by subsection (a). (2) Application The amendments made by this section shall apply to— (A) any application filed or inventory returned on or after the date described in subsection (d); and (B) any criminal surveillance order entered on or after the date described in subsection (d). (3) Rule of construction regarding unsealing Nothing in the amendments made by this section shall be construed to prohibit a court from unsealing— (A) a criminal surveillance order entered or inventory returned before the date described in subsection (d); or (B) an application for a criminal surveillance order made before the date described in subsection (d). (4) Rule of construction regarding interpretation The amendments made by this section shall be liberally construed in favor of public access to documents, to the extent possible. 3. Notice to courts of unlawful surveillance (a) Required disclosure of customer communications or records Section 2703(d) of title 18, United States Code, is amended— (1) by striking A court order and inserting the following: (1) In general A court order ; and (2) by adding at the end the following: (2) Required inventory A court order for disclosure issued under subsection (b) or (c) shall require an inventory described in rule 41(f)(1)(B) of the Federal Rules of Criminal Procedure, or any successor thereto, be promptly returned to the court if the provider disclosed to the government any data not authorized by the court. . (b) Issuance of an order for a pen register or a trap and trace device Section 3123(b) of title 18, United States Code, is amended— (1) in paragraph (1)(D), by striking and at the end