adapt to new # of webpages