moved the print last updated code to the line beneath the read.csv code