incurred by the taxpayer—
(i)#
to acquire the principal residence of the taxpayer,
(ii)#
as a qualified home improvement loan (as defined in section 143(k)(4)) with respect to such residence, or
(iii)#
as a qualified rehabilitation loan (as defined in section 143(k)(5)) with respect to such residence, and