How does the sentence end?

The doctor had to cure the infection using medication instead of the treatment because the
treatment was not doing anything.