finished the paginator api