improve query bam2