now calculating likelihoods