figured out pagination issue