removed unnecessary code index