updating with new integration method