adapted to m-style integrating

does that make sense?