adjust sample index for content
merged #10