need both indeces