rename and update index