working on resample
working on resample