add ref to index