simplify index2