sample index added