Next, the unpaid mortgage balance your lender canceled as part of a modification, short sale or foreclosure cannot have been used for non-qualifying purposes, i.e, for something other than acquiring or constructing the house or making capital improvements to it.