pagination preparation