working on reading in index