iterated through pages