re-implement with samtools v1.1