; and (B) in subsection (f)— (i) by inserting (1) after (f) ; and (ii) by adding at the end the following new paragraph: (2) The aggregate number of commissioned officers detailed under this section and enlisted members detailed under section 2004a of this title in any fiscal year by a Secretary of a military department may not exceed 25. . (2) Heading amendment The heading of section 2004 of such title is amended to read as follows: 2004. Detail as students at law schools: commissioned officers . (c) Clerical amendment The table of sections at the beginning of chapter 101 of such title is amended by striking the item relating to section 2004 and inserting the following new items: 2004. Detail as students at law schools: commissioned officers. 2004a. Detail as students at law schools: certain enlisted members. 2004b. Detail of commissioned officers as students at medical schools. 2004c. Detail of commissioned officers as students at schools of psychology. .