STANFORD, Calif. -- No. 1 Maryland pulled out a 3-2 win in double overtime at No. 11 Stanford on Sunday.

The Terps trailed through the second half, then Jill Witmer scored to force OT. Katie Gerzabek scored with 24 seconds left in the second OT to give Maryland the victory.

"This game was such a great opportunity for us to experience all facets of the game and so many situations," head coach Missy Meharg said. "Stanford is extremely talented. We pulled our goalie in the final minutes of regulation, scored in the final minutes to force overtime and found a way to win, just a great experience for us so early in the year."

Witmer put the Terrapins on top 1-0 in the fifth minute of play when she took hold of a loose ball, then took a shot for the lead. The Terrapins (2-0) held their lead through halftime.

Stanford's Alex McCawley scored less than three minutes into the second half with a high shot to tie it up. Two and a half minutes later, the Cardinal's Jessica Chisholm knocked in a loose ball in front of the cage for the 2-1 Stanford lead.

Maryland pulled goalkeeper Natalie Hunter out of the goal to put in an extra field player with six minutes left in regulation. Witmer forced overtime when she slipped a goal past Stanford with 3:19 remaining.

The Terps and the Cardinal (1-1) went on to play more than 29 minutes of scoreless overtime. Maryland was a player down most of the second overtime when senior Megan Frazer was given a yellow card in the 90th minute.

With 24 seconds to go, Gerzabek found a loose ball in front of the goal off the corner play and snuck it in for the win.

Hunter finished with six saves and senior Harriet Tibble added a defensive save. Stanford goalkeeper Dulcie Davies notched nine saves on the day.