in progress addition of prior and expectation functions