refactored the scsi_ba_to_xx method