updated index vs i