; and (B) by amending subparagraph (B) to read as follows: (B) Other substitutions (i) Standards for required substitution (I) With respect to a student for whom fluid milk is not nutritionally appropriate due to a medical or other special dietary need other than a disability described in subparagraph (A)(iii) (as determined by the school in consultation with the parent or legal guardian of such student), a school shall substitute, for the fluid milk provided under subparagraph (A), a nondairy beverage that meets the nutritional needs of such student. (II) A school shall substitute, for the fluid milk provided under subparagraph (A), a nondairy beverage that is nutritionally equivalent to fluid milk and meets nutritional standards established by the Secretary if the parent or legal guardian of such student submits a written request for such substitution. (ii) Standards for discretionary substitution A school may offer each student a nondairy beverage as a substitute for fluid milk that is nutritionally equivalent to fluid milk and meets nutritional standards established by the Secretary. (iii) Excess expenses Except as provided under clause (iv), expenses incurred by providing substitutions under clauses (i) and (ii) that are in excess of expenses covered by reimbursements under this Act shall be paid by the school food authority. (iv) Pilot program (I) Program authorized Not later than 90 days after the date of the enactment of this subparagraph, the Secretary shall establish and carry out a pilot grant program to award grants to eligible school food authorities to carry out subclause (III). (II) Priority In awarding grants under this clause, the Secretary may give priority to— (aa) an eligible school food authority that serves high proportions of students with high rates of lactose intolerance