need to redo the code in collections and abstract out pagination

because this could be so much easier