working on integrability