in resampling: added display of intermediate reslults of last iteration when resampling is done all at once.