included the tryCatch function within the mode summary for loop as well, in case errors are obstructing ...