FIX: trim/correct sample & reformat index-output