adding pagination to other memory methods