combine ranking and paging