new pagination technique for repopages