keep_files_in_range extracted