(A) In general Excess funds returned by the institution or the
student, as appropriate, in accordance with paragraph (1) or (2), respectively, shall be credited to outstanding balances on loans made under this subchapter and part C of subchapter I of chapter
34 of title
42 to the
student or on behalf of the
student for the payment period or period of enrollment for which a return of funds is required. Such excess funds shall be credited in the following order:
(i) To outstanding balances on loans made under section
1078–8 of this title for the payment period or period of enrollment for which a return of funds is required.
(ii) To outstanding balances on loans made under section
1078 of this title for the payment period or period of enrollment for which a return of funds is required.
(iii) To outstanding balances on unsubsidized loans (other than parent loans) made under part C of this subchapter for the payment period or period of enrollment for which a return of funds is required.
(iv) To outstanding balances on subsidized loans made under part C of this subchapter for the payment period or period of enrollment for which a return of funds is required.
(v) To outstanding balances on loans made under part D of this subchapter for the payment period or period of enrollment for which a return of funds is required.
(vi) To outstanding balances on loans made under section
1078–2 of this title for the payment period or period of enrollment for which a return of funds is required.
(vii) To outstanding balances on parent loans made under part C of this subchapter for the payment period or period of enrollment for which a return of funds is required.
(B) Remaining excesses If excess funds remain after repaying all outstanding loan amounts, the remaining excess shall be credited in the following order:
(i) To awards under subpart 1 of part A of this subchapter for the payment period or period of enrollment for which a return of funds is required.
(ii) To awards under subpart 3 of part A of this subchapter for the payment period or period of enrollment for which a return of funds is required.
(iii) To other assistance awarded under this subchapter and part C of subchapter I of chapter
34 of title
42 for which a return of funds is required.