add subsampling