function model = scanDirs(model)
% disp('scan dir');
baseDir = getBaseDir(model);
subjectNames = listDirNames(baseDir);

set(model.subjectSelector,'String',subjectNames);
set(model.subjectSelector,'UserData',subjectNames);
set(model.subjectSelector,'Value',model.selectedSubject);

%subjectNames(model.selectedSubject)
imageMask = imageMaskNames(fullfile(baseDir,cell2mat(subjectNames(model.selectedSubject))));

set(model.imageTypeSelection,'String',imageMask);
set(model.imageTypeSelection,'UserData',imageMask);

% set(model.txtBaseDir,'String',baseDir);

% des = 
% tr = des.xsDes.Interscan_interval(1:end-3);
set(model.labelTR,'String',2)
end