paginator class edited