as vendor is before total amount, instr will return 0, which will cause error in MID