got pagination to work, at least i think