abstract bam filter