added pagination prototype