rebuilding page by page