added code for downsample with NN and NS