The experienced Pakistan batsmen, Younus Khan and Misbah-ul-Haq, both scored centuries to put their team firmly in control of the opening test against Sri Lanka in Abu Dhabi.
The pair added 218 runs for the fourth wicket as Pakistan reached 327 for four at the close of play on the second day with a lead of 123.
Younus (136) dominated the partnership and the hapless Sri Lankan bowlers to complete his 23rd test hundred.
He hit 19 fours and a six before being bowled by paceman Shaminda Eranga.
The captain, Misbah, went into a shell as he neared his fifth test hundred but reached the mark in 241 deliveries with a single off Sachithra Senanayake.
The 39-year-old was unbeaten on 105, including 13 fours, at stumps. Asad Shafiq (12) was the other not out batsman at the crease.