Deductions & credits

To clarify, do we deduct the amount that was spent to pay off other debt from the amount of the mortgage refi to obtain the answer to "Since you first took out this loan, how much has been spent to buy, improve, or build the home it's secured by?" If we didn't use any of the mortgage refi proceeds to improve the home when we closed on the loan, do we enter zero for this question. I am not sure what they mean by "buy." How can you use the mortgage refi proceeds to buy the same home that the loan is secured by?