trying to fix pagination