make paging and id index