to speed up, create an extra file to sort and index bam file