allow resample to decrease number of samples