set and get resample