process pages in ascending order