working on joint prior