finished function pre-next-page