added sample index