implemented class pagination while indexing a submission