retain bam file after sampe