added prior and likelihood