prob working uses log likelihoods