working through indexing