combined records and pagination