change out_bam from char* to bool