change codeindex to use