change sample.index