Variable change
-made rowsToCheck a global variable