update integral