Update sample index