change references in index