make index of bam files before processing