update selecting files from datasets method