updates some references in index