add ability to paginate