corrected the index column used