function SSprocess_alt2(fid_prefix,fidlist)

clearvars -except fid_prefix fidlist; close all;

fpath = ['C:\Users\USER\Documents\mingfaifong\' fid_prefix '\bychannel_alt\biggerfiles\'];
spath = ['C:\Users\USER\Documents\mingfaifong\' fid_prefix '\SSfiles_alt\']; mkdir(spath);

if nargin<2
    fpath_info = dir(fpath);      %get info about contents of directory
    isfile = ~[fpath_info.isdir]; %get index for files only
    fidlist = {fpath_info(isfile).name}; %create list of files
end

for i = 1:length(fidlist)
    close all;
    fid = fidlist{i};
    if strfind(fid,'.mat')
        spkdat = load([fpath fid]);
    else
        break
    end
    SS = SqueakySpk(fid(1:length(fid)-4),25000,1,spkdat);
%    SS.RemoveChannel([1 8 33 57 64 10 11 25 31 34 35 47 53 58]);
%    SS.RemoveChannel([1 8 19 28 33 47 48 57 64]);
%       if strfind(fid,'363')
%           SS.RemoveChannel([1 8 33 57 64 10 11 25 31 34 35 47 53 58]);
%       elseif strfind(fid,'359')
%           SS.RemoveChannel([1 8 33 57 64 11 50 2 3 9 10 17 18 19 25 26 27 ]);
%       elseif strfind(fid,'364')
%           SS.RemoveChannel([1 8 33 46 49 57 64]);
%       else
          SS.RemoveChannel([1 8 33 57 64]);
%       end
%     if strfind(fid,'363')
%         SS.RemoveChannel([1 8 33 40 53 55 57 64]);
%     elseif strfind(fid,'360')
%         SS.RemoveChannel([1 8 33 57 64]);
%     end
    SS.HardThreshold(300);
    SS.WaveClus(3,20,'wav',0);
    SS.Save(spath)
    %SS.Save
    clearvars -except fidlist fpath spath
end