improving TSR error computation