scripts to identify TIR and TSD compbination