code cleanup for subsamples in blocked sampling