resampling in decodeall