update page length