work on joint model