With second sample index