handle end-of-page, sorry :D