updated sample index