tested upsample, works