paginator code working again