process all pages