check if last column is the one that has to be changed.

To find out if the last column, is the one that has to be changed the comparison was corrected.