updated double integral