correct code index