rename and index