changed subsampling to be the same as in samtools