fixing bug when not assigning acc_codes on selecting trans_type