update for str indexing