fixed TSRIM errors