changed the index to the threeDcode index