COLOMBO, Sri Lanka (AP) — Kumar Sangakkara hit his third straight test century while Dinesh Chandimal scored his second as the pair led Sri Lanka back from a slump in the second test against Bangladesh on Sunday.

The hosts were 294-6 at stumps on the second day, leading by 54 runs after being reduced to 69-4 in the morning session.

Sangakkara was unbeaten on 127, following on from his scores of 142 and 105 in the first test in Galle last week. Chandimal was out for 102. He made an unbeaten 116 in the high-scoring first test.

Sangakkara spent more than six hours at the crease for a 33rd test century that came off 271 deliveries and included 10 boundaries. Chandimal hit eight fours and faced 176 deliveries.

The pair added 195 for the fifth wicket in 358 deliveries before Chandimal misjudged the length of a delivery from seamer Rubel Hossain and was bowled.

Their runs were all the more valuable given a lush, slow outfield that yielded limited outcome for attacking strokes.

Seamer Hossain returned the best bowling figures of 2-41 after bowling with the second new ball, while Robiul Islam took 2-52.

Bangladesh's bowlers grabbed three quick wickets to put pressure on Sri Lanka in the opening session of the second day.

Islam added the wicket of Lahiru Thirimanne (0), who was caught behind by captain Mushfiqur Rahim, seamer Abul Hasan dismissed opener Dimuth Karunaratne (17) and offspinner Sohag Gazi had Angelo Mathews (16) caught by Mahmudullah.

Tillakartne Dilshan was dismissed for a duck by Islam during Sri Lanka's four overs of batting on the first day.

Bangladesh was 240 all out in its first innings with Mominul Haque top-scoring with 64.

Both teams are chasing a win in the match to claim victory in the two-match series after the first test ended in a draw in Galle last week.