added TODO in resample