ENH: avoid resampling

if not necessary