AD hoc modification refers to modifying or adding some new assumptions to a scientific theory so that it is not verifiable or testable in order to avoid the risk of disproving it.
Adherents of Aristotle, insisting that all heavenly bodies were perfect spheres, proposed that the moon was filled with undetectable material that would keep it perfectly spherical is AD hoc modification.