use PaginatorInterface instead of Paginator class