generic subsampling now working