Scottish Premier League bottom side Dundee came from behind to beat St Mirren and reduce the gap between the two sides to 14 points.
The visitors led at the break courtesy of Dougie Imrie's 14-yard strike, with Lewis Guy and Sam Parkin also threatening for the Buddies.
John Baird fired the hosts level midway through the second half.
And Jim McAlister netted with 12 minutes remaining to give John Brown his first win in charge of Dundee.
Victory boosts the Dark Blues' hopes of avoiding relegation with nine matches still to be play.
Imrie put St Mirren ahead when he raced into the box to fire high past Rab Douglas following a neat combination between Conor Newton and Guy.
Guy tested the Dundee keeper 15 minutes later, cutting in from the left to hit a low shot that Douglas was down smartly to palm away.
And Douglas again rescued Dundee as half-time neared, this time with an athletic leap to his left to beat away a net-bound Parkin header from Graham Carey's cross.
Dundee had a fair share of possession but failed to trouble Craig Samson with a single shot on goal in the opening period.
And Brown brought on Nicky Riley and Ryan Conroy for Kevin McBride and Steven Milne at the start of the second half to inject some energy to their performance.
Riley brought the first save from Samson in the 67th minute at the left post.
But it was Baird who fired the home side level just moments afterwards, reacting quickly to crack the ball past the keeper at his right post from outside the box.
Ten minutes later, Dundee took the lead. Gary Harkins' ball across goal was laid off by Riley for McAlister to steer past Samson.
As Dundee grew in confidence Conroy raced down the left and fired a powerful shot high over the bar.
That was the last effort of the game as the Dens Park side claimed only their fourth SPL win of the season.