subsampling bug resolved