fixed another bug - switched indices on line 121