England lost their last four wickets for 45 runs on the third morning of the second Investec Test against Sri Lanka, taking a lead of 108.
That was significantly less than they had been hoping for when they reconvened at Headingley on 320 for six, with Matt Prior and Chris Jordan at the crease.
Prior finished 27 not out as England were dismissed for 365 but had modest support as Angelo Mathews and Shaminda Eranga took two wickets each.
Mathews, who produced a wonderful off-cutter to castle Liam Plunkett, finished with Test best figures of four for 44.
England opted to use the heavy roller before play, against local advice, but if they thought that would help them advance their case early on the ploy failed.
The short, wide loosener Mathews served up for the first ball of the day did disappear for four off Jordan's bat but it quickly became apparent that there was enough movement through the air and doubt in English minds to cause problems.
Eranga was swinging the ball consistently and should have had Jordan for 12 had his edge not sailed between wicketkeeper Dinesh Chandimal and slip Kumar Sangakkara without either man moving.
It was not a costly miss, with the batsman adding just five more before nicking Eranga again.
This time Mahela Jayawardene took the matter out of Sangakkara's hands, leaping in front on his team-mate to snare fine catch.
It was the veteran's 196th in Tests, taking him level with Ricky Ponting at third on the all-time list.
Stuart Broad followed seven balls and one boundary later, Mathews inducing the edge off a length and seeing it well held at gully.
The Sri Lanka skipper had an even better trick up his sleeve when Liam Plunkett arrived, cutting the ball fiercely off the pitch and confounding the tailender's attempt at defence.
That left Prior and last man James Anderson with the task of eking the lead into three figures, a feat the former managed in some style as he hoisted Eranga for a six over long-on.
But the paceman finished things at his next visit, bouncing Anderson and collecting a simple return catch fended off the body.