added in paging in functionality kind of