changed tstar calculation