added lastPageNumber