changed where sample2 was to index