Be more consistent about line splitting to make it easier to tell the differences between these different statements.
Consider dedicating a separate line of code for each clause that defines an index.