complete condition for bam.bai files