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

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

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

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


end