add a function called pre_bwa