paginate results. refactor partial.