index confusion