modify index at coding2