updating index with examples