clean up pipeline of bam file creation