issues with pagination