reworked resamples