solved pagination issue