added maxpages