Update integrate.hpp