looping over pages too