changes the name index