setup sample index