use class index for annotations