dont need the second "setwd(wd)"