modified vertex to take limit and offset, moved pagination into paginatedvertex