wrong index used