forgot to fix the indexing with the change in thresholds