prep for pagenation