if there is no next page, stop