North Carolina’s defense allowed a staggering 40 points to App State in the 4th quarter on Saturday afternoon, nearly blowing a 3-touchdown lead.

That’s the most points that any FBS team has scored in the 4th quarter of a game since at least 2015. The most points any team has scored in any quarter during that period is 42.

It’s also a program record for the most points allowed by a North Carolina defense in any single quarter. The previous record was 39 points scored by Maryland in the second quarter of their 2003 matchup.

App State’s 664 total yards is also close to a program-worst defensively for UNC. It’s the 5th most yards allowed in a single game in North Carolina history.

North Carolina managed to escape Boone with the win anyways, mostly thanks to the Tar Heels’ outstanding defense and some 2-point conversion luck. App State missed a pair of conversions in the final 31 seconds that would have either extended the game or given the Mountaineers the lead.

North Carolina switched defensive coordinators this offseason, handing the job to Gene Chizik. UNC has a young roster but will need to figure things out defensively in the coming weeks. UNC hosts Notre Dame in Week 4.