joint prior from great3
working on joint prior