add an index to collections; bug 861224