important function that gets around taking the integral