adjust sample index for content