simplify index_regen