subsampling added