adding subsampler script