add shuffling and ranking for resampling techniques