remove never used variable: index