fixed TIR not being returned