SAN DIEGO (AP) — Southern California ended the season with two losses, to No. 5 Stanford in the Pac-12 Conference championship game and then to No. 23 Wisconsin in the Holiday Bowl on Wednesday night, 23-21.

Coach Clay Helton doesn’t think that’ll stunt the growth of a program that’s dealt with plenty of upheaval the last several seasons.

“I think we are on the rise. I really, really do,” Helton said after the loss to the Badgers. “If you look at the amount of talent coming back and think, wow, the future is so, so bright. A lot of that talent has been developed by (the seniors) helping them grow up this year.

“I do not let this game deter it. It was two very, very good games and we came up short.”

Rafael Gaglianone kicked a 29-yard field goal with 2:27 left to lift the Badgers to victory.

Gaglianone’s third field goal gave Wisconsin (10-3) its first win in seven tries against USC (8-6). The teams hadn’t met since 1966, and two of USC’s wins in the series were in the Rose Bowl, in 1953 and 1963.

Wisconsin wide receiver Alex Erickson gets away from Southern California cornerback Adoree’ Jackson during the first half of the Holiday Bowl NCAA college football game Wednesday, Dec. 30, 2015, in San Diego. (AP Photo/Gregory Bull)

The Trojans got to the 50 in the final seconds before Kessler threw four straight incompletions.

Helton wished the seniors could have gone out with a victory.

“Very sad for them,” he said. “It was not the ending we wanted. I thought we had a chance there in the second half for a magical ending, and it just didn’t happen.”

USC, which beat Nebraska in last year’s Holiday Bowl, had taken a 21-20 lead on Kessler’s 7-yard touchdown pass to Darreus Rogers with 10:19 left.

Kessler was flushed from the pocket but scrambled around. Rogers got open and made a leaping catch.

Gaglianone also had field goals of 38 and 33 yards.

Wisconsin was in control for much of the game. Corey Clement scored on a 6-yard run midway through the second quarter for a 10-0 lead. Joel Stave threw a 4-yard scoring pass to tight end Austin Traylor for a 20-7 lead midway through the third quarter.

The Trojans gained some momentum with Justin Davis’ second TD run of the game, with 5:34 left in the third quarter. On USC’s next possession, Cichy broke through to sack Kessler three straight times, for a total loss of 24 yards.

Davis’ first TD was a 1-yard dive over the top on fourth down in the second quarter. That drive was kept alive on a 34-yard pass from Cody Kessler to Adoree’ Jacksonon fourth-and-4 from the 36.

Kessler was 18 of 32 for 221 yards. Stave was 18 of 27 for 217 yards.

___

This story has been corrected to show score in short headline is 23-21.