Also needed to index value when doing comparisons