fixed up logic with aligned bams