class 3 and update index