implement basic next paging