update index to class style