replaced %dopar% with %do% when called from Windows