change type of pagenumber to long