How does the sentence end?

When I had a migraine, I took the pills instead of the capsules because the
capsules didn't work.