some for loops in indexing nixed