How does the sentence end?

Peyton was making an omelette for breakfast but realized he had ham but he didn't have cheese. It was necessary to go to the store for the
cheese .