paginator refactored to replace this with self in promise.then()