update class index