first pass at index