solve the integral