a bit of refactoring + the proxy object stores the total number of pages and entries