changed integrand to t