refactored the scsi_xx_to_ba method