a bit closer to a working integration