added subroutine to check for mismatches in TIRs