; and (C) by inserting after subparagraph (D), the following: (E) if applicable, how funds will be used for activities related to supporting school safety infrastructure improvements under section 4109; and ; and (2) in paragraph (2)— (A) in subparagraph (A), by inserting , including charter schools where applicable, after schools ; (B) by redesignating subparagraphs (E) and (F) as subparagraphs (F) and (G), respectively; (C) by inserting after subparagraph (D) the following: (E) use a portion of funds received under this subpart to support one or more of the activities authorized under section 4109; ; and (D) in subparagraph (F), as so redesignated— (i) by striking section 4109(a) and inserting section 4110(a) ; and (ii) by striking section 4109(b) and inserting section 4110(b) . (f) Activities To support safe and healthy students Section 4108 of the Elementary and Secondary Education Act of 1965 ( 20 U.S.C. 7118 ) is amended— (1) in the matter preceding paragraph (1), by striking Subject to and inserting the following: (a) In general Subject to ; (2) in subsection (a)(5) (as amended by paragraph (1))— (A) in subparagraph (B), in the matter preceding clause (i), by striking 4111 and inserting 4112 ; and (B) in subparagraph (E), by striking 4111 and inserting 4112 ; and (3) by adding at the end the following: (b) Rule of construction Nothing in this section shall be construed to— (1) prevent Federal, State, or local law enforcement from detaining or arresting an individual who could otherwise be detained or arrested for an alleged violent offense; (2) otherwise interfere with Federal, State, or local law enforcement’s discretion to investigate legitimate threats to school safety