changed variables: PAGEOFFSET, PAGENUMBER