added down/upsample