unified white space
renamed variables for gateIndexes