add class1 and update index