then you need a loop to iterate over the pages, right?