If you did not satisfy and replace the existing note with a new note then the "modification" does not meet the definition of a home purchase, home improvement or refinancing.
_________________________
The opinions expressed are mine and they are not to be taken as legal advice.