bam subtract scrip