add sd output after running loop

(rather than importing .csv file)