contract pagination