save intermediate results, cell2mat may be quicker