working on  prior fitting
working on  prior fitting
adding joint bdf prior